<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台管理系统</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/management_system.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/management.js"></script>
</head>
<body>

<!--欢迎页面-->
<div id="management_head">
    <div class="welcome">欢迎你，超级管理员</div>
    <div class="Sign_out">
        <ul>
            <%--<li>账户管理</li>--%>
            <%--<li>网站前台</li>--%>
            <%--<li>更新缓存</li>--%>
            <li>安全退出</li>
        </ul>
    </div>
</div>
<!--首页功能-->
<div id="Home_page">
    <ul class="Home_page_first">
        <li onmousedown="changeImage()" class="home_page1">首页</li>
        <li onmousedown="changeImage1()">用户管理</li>
        <li onmousedown="changeImage3()">主播管理</li>
        <li onmousedown="changeImage4()">财务管理</li>
        <li onmousedown="changeImage5()">礼物管理</li>
    </ul>
    <div id="display">
        <!--首页-->
        <div class="displays">
            <!--//用户人数 主播人数 在线人数-->
            <div style="overflow: hidden">
                <a href="">人数统计&gt</a>
                <!--总人数-->
                <br>
                <div class="Total_number">
                    <p>注册总人数</p>
                    <div>${requestScope.getUser.size()+requestScope.getAnchor.size()} 人</div>
                </div>
                <!--在线人数-->
                <div class="Online_number">
                    <p>主播注册人数</p>
                    <div>${requestScope.getAnchor.size()} 人</div>
                </div>
                <div class="Blacklist">
                    <p>普通用户注册人数</p>
                    <div>${requestScope.getUser.size()} 人</div>
                </div>
                <div class="Total_number">
                    <p>当前在线总人数</p>

                        <div id="count"></div>

                </div>
                <!--在线人数-->
                <div class="Online_number">
                    <p>当前主播在线人数</p>
                    <div id="count01"></div>
                </div>
                <!--人数-->
                <div class="Blacklist">
                    <p>当前普通用户在线人数</p>
                    <div id="count02"></div>
                </div>
            </div>

            <div>
                <a href="">用户建议&gt</a>
                <div class="picture">
                    <table id="table01">
                        <tr>
                            <td>举报人ID</td>
                            <td>举报人姓名</td>
                            <td>被举报主播ID</td>
                            <td>被举报主播姓名</td>
                            <td>主播房间号</td>
                            <td>举报信息</td>
                            <td>举报时间</td>
                        </tr>
                        <%--<c:forEach items="${}">--%>
                        <tr>
                            <td>0001</td>
                            <td>郭豪</td>
                            <td>0002</td>
                            <td>小鱼儿</td>
                            <td>30001</td>
                            <td>
                                <button id="ckxx">查看信息</button>
                            </td>
                            <td>2018-12-20 16:30:20</td>
                        </tr>
                        <%--</c:forEach>--%>
                    </table>
                </div>
            </div>
            <div id="jbxx">该主播开挂
                <a href="javascript:void (0);" id="off02">
                    <button>关闭</button>
                </a></div>
        </div>
        <!--用户管理-->
        <div class="displays">
            <div id="ssk">
                <input type="text" name="userId" placeholder="请输入需要查询的ID">
                    <input type="button" id="but02" value="搜索">
            </div>
            <ul id="h1">
                <li>用户Id</li>
                <li>用户昵称</li>
                <li>用户头像</li>
                <li>用户状态</li>
                <li>创建时间</li>
                <li>钱包余额</li>
                <li>手机号码</li>
                <li>邮箱地址</li>
                <li>修改状态</li>
            </ul>
                <c:forEach items="${requestScope.getUser}" var="user">
                    <ul class="h2">
                        <li>${user.userId}</li>
                        <li>${user.nickName}</li>
                        <li><img src="${user.photoImgUrl}" width="30px" height="30px" alt=""></li>
                        <li class="stateName01">${user.state.stateName}</li>
                        <li>${user.createTime}</li>
                        <li>${user.balance}</li>
                        <li>${user.phone}</li>
                        <li>${user.email}</li>
                        <li class="liUpdate">
                            <select name="upState">
                                <option value="1" selected="selected">正常状态</option>
                                <option value="2">封号状态</option>
                                <option value="3">解除封号</option>
                            </select>
                        </li>
                    </ul>
                </c:forEach>
            <%--<div id="tab">--%>
            <%--<c:if test="${requestScope.getUser>1}">--%>
            <%--<a href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=1">首页</a>--%>
            <%--&nbsp;<a--%>
            <%--href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=${requestScope.getUser.pageNo-1}">上一页</a>--%>
            <%--</c:if>--%>
            <%--<c:if test="${requestScope.getUser.pageNo < requestScope.getUser.pageNum}">--%>
            <%--<a href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=${requestScope.getUser.pageNo+1}">下一页</a>--%>
            <%--&nbsp;<a--%>
            <%--href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=${requestScope.getUser.pageNum}">尾页</a>--%>
            <%--</c:if>--%>
            <%--&nbsp;第&nbsp;${requestScope.getUser.pageNo}/ ${requestScope.getUser.pageNum}&nbsp;页--%>

        </div>
        <!--主播管理-->
        <div class="displays">
            <div id="ssk">
                <input type="text" id="but03_context" name="userId" placeholder="请输入需要查询的ID" value="">
                    <input onclick="open()" type="button" id="but03" value="搜索">
            </div>
            <ul id="h1">
                <li>用户Id</li>
                <li>用户昵称</li>
                <li>用户头像</li>
                <li>用户状态</li>
                <li>创建时间</li>
                <li>钱包余额</li>
                <li>手机号码</li>
                <li>邮箱地址</li>
                <li>修改状态</li>
            </ul>
            <c:forEach items="${requestScope.getAnchor}" var="Anchor">
                <ul class="h2">
                    <li class="id">${Anchor.userId}</li>
                    <li>${Anchor.nickName}</li>
                    <li><img src="${Anchor.photoImgUrl}" width="30px" height="30px" alt=""></li>
                    <li class="stateName">${Anchor.state.stateName}</li>
                    <li>${Anchor.createTime}</li>
                    <li>${Anchor.balance}</li>
                    <li>${Anchor.phone}</li>
                    <li>${Anchor.email}</li>
                    <li class="liUpdate">
                        <select name="upState">
                            <option value="1" selected="selected">正常状态</option>
                            <option value="2">封号状态</option>
                            <option value="3">解除封号</option>
                        </select>
                    </li>
                </ul>
                <div class="anchoryc">
                    <from>
                        <ul class="h1_1">
                            <li>用户Id</li>
                            <li>用户昵称</li>
                            <li>用户头像</li>
                            <li>用户状态</li>
                            <li>创建时间</li>
                            <li>钱包余额</li>
                            <li>手机号码</li>
                            <li>邮箱地址</li>
                            <li>修改状态</li>
                        </ul>
                        <ul class="h2">
                            <li>${Anchor.userId}</li>
                            <li>${Anchor.nickName}</li>
                            <li><img src="${Anchor.photoImgUrl}" width="30px" height="30px" alt=""></li>
                            <li>${Anchor.state.stateName}</li>
                            <li>${Anchor.createTime}</li>
                            <li>${Anchor.balance}</li>
                            <li>${Anchor.phone}</li>
                            <li>${Anchor.email}</li>
                            <li class="liUpdate">
                                <select name="upState">
                                    <option value="1" selected="selected">正常状态</option>
                                    <option value="2">封号状态</option>
                                    <option value="3">解除封号</option>
                                </select>
                            </li>
                        </ul>
                        <button onclick="close()" class="off04" >关闭</button>
                    </from>
                </div>
            </c:forEach>
            <%--<div id="tab">--%>
            <%--<c:if test="${requestScope.getUser.pageNo>1}">--%>
            <%--<a href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=1">首页</a>--%>
            <%--&nbsp;<a--%>
            <%--href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=${requestScope.getUser.pageNo-1}">上一页</a>--%>
            <%--</c:if>--%>
            <%--<c:if test="${requestScope.getUser.pageNo < requestScope.getUser.pageNum}">--%>
            <%--<a href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=${requestScope.getUser.pageNo+1}">下一页</a>--%>
            <%--&nbsp;<a--%>
            <%--href="${pageContext.request.contextPath}/administrator?methodName=getGiftAll&pageNo=${requestScope.getUser.pageNum}">尾页</a>--%>
            <%--</c:if>--%>
            <%--&nbsp;第&nbsp;${requestScope.getUser.pageNo}/ ${requestScope.getUser.pageNum}&nbsp;页--%>
            <%--</div>--%>
        </div>

        <!--通知管理-->
        <div id="displays" class="displays">
                <%--<p class="edit">需要通知的消息编辑框</p>--%>
                    <ul id="h3">
                        <li>所有用户充值金额总结</li>
                        <li>所有主播礼物收入金额总计</li>
                        <li>当前平台可流动资金</li>
                    </ul>
                    <ul class="h3">
                        <li>${requestScope.recharge+requestScope.priceAll} 万</li>
                        <li>${requestScope.priceAll} 万</li>
                        <li>${requestScope.recharge-requestScope.priceAll} 万</li>
                    </ul>

        </div>
        <!--礼物管理-->
        <div class="displays">
            <button id="xz">新增礼物</button>
            <ul id="gift">
                <c:forEach items="${requestScope.gift}" var="gift">
                    <li>
                        <img class="d" src="${gift.giftImgUrl}" alt="">
                        <p>ID：&nbsp;<span class="a">${gift.giftId}</span></p>
                        <p>名字：&nbsp;<span class="b">${gift.giftName}</span></p>
                        <p>价格：&nbsp;<span class="c">${gift.giftPrice}</span></p>
                        <a href="${pageContext.request.contextPath}/administrator?methodName=giftRemove&giftId=${gift.giftId}">
                            <button>删除礼物</button>
                        </a>
                        <button class="upDate_b">修改礼物</button>
                    </li>
                </c:forEach>
            </ul>

            <form id="upDate">
                <div>
                    <img id="img" src="" alt="">
                    <input id="file" name="giftImgUrl" type="file">
                    <p>ID：&nbsp;<span id="giftId"></span></p>
                    名字：<input type="text" name="giftName" value="">
                    <br>
                    价格：<input type="text" name="giftPrice" value="">
                </div>
                <input type="button" id="upDate_a" value="修改">
                <a id='off' href='#'>X</a>
            </form>

            <form id="upDate01" action="${pageContext.request.contextPath}/administrator?methodName=giftAdd"
                  method="post">
                <div>
                    <img id="img01" src="" alt="">
                    <input id="file01" name="giftImgUrl" type="file"><br>
                    名字：<input type="text" name="giftName" value="">
                    <br>
                    价格：<input type="text" name="giftPrice" value="">
                </div>
                <input type="submit" id="upDate_a01" value="提交">
                <a id='off01' href="javascript:void(0);">X</a>
            </form>
        </div>
    </div>


</div>

</body>
</html>